<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('spacecp_blog');
0
|| checktplrefresh('./template/default/home/spacecp_blog.htm', './template/default/common/simplesearchform.htm', 1312051586, '1', './data/template/1_1_home_spacecp_blog.tpl.php', './template/default', 'home/spacecp_blog')
|| checktplrefresh('./template/default/home/spacecp_blog.htm', './template/default/common/seccheck.htm', 1312051586, '1', './data/template/1_1_home_spacecp_blog.tpl.php', './template/default', 'home/spacecp_blog')
|| checktplrefresh('./template/default/home/spacecp_blog.htm', './template/default/common/userabout.htm', 1312051586, '1', './data/template/1_1_home_spacecp_blog.tpl.php', './template/default', 'home/spacecp_blog')
;?><?php include template('common/header'); if($_GET['op'] == 'delete') { ?>
<h3 class="flb">
<em>删除日志</em>
<?php if($_G['inajax']) { ?><span><a href="javascript:;" onclick="hideWindow('<?php echo $_G['gp_handlekey'];?>');return false;" class="flbc" title="关闭">关闭</a></span><?php } ?>
</h3>
<form method="post" autocomplete="off" action="home.php?mod=spacecp&amp;ac=blog&amp;op=delete&amp;blogid=<?php echo $blogid;?>">
<input type="hidden" name="referer" value="<?php echo dreferer(); ?>" />
<input type="hidden" name="deletesubmit" value="true" />
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
<div class="c">确定删除指定的日志吗？?</div>
<p class="o pns">
<button type="submit" name="btnsubmit" value="true" class="pn pnc"><strong>确定</strong></button>
</p>
</form>
<?php } elseif($_GET['op'] == 'stick') { ?>
<h3 class="flb">
<em><?php if($stickflag) { ?>置顶日志<?php } else { ?>取消置顶日志<?php } ?></em>
<?php if($_G['inajax']) { ?><span><a href="javascript:;" onclick="hideWindow('<?php echo $_G['gp_handlekey'];?>');return false;" class="flbc" title="关闭">关闭</a></span><?php } ?>
</h3>
<form method="post" autocomplete="off" action="home.php?mod=spacecp&amp;ac=blog&amp;op=stick&amp;blogid=<?php echo $blogid;?>">
<input type="hidden" name="referer" value="<?php echo dreferer(); ?>" />
<input type="hidden" name="sticksubmit" value="true" />
<input type="hidden" name="stickflag" value="<?php echo $stickflag;?>" />
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
<div class="c"><?php if($stickflag) { ?>确定置顶指定的日志吗？<?php } else { ?>确定要取消置顶指定的日志吗？<?php } ?>?</div>
<p class="o pns">
<button type="submit" name="btnsubmit" value="true" class="pn pnc"><strong>确定</strong></button>
</p>
</form>

<?php } elseif($_GET['op'] == 'addoption') { ?>
<h3 class="flb">
<em>创建分类</em>
<?php if($_G['inajax']) { ?><span><a href="javascript:;" onclick="blogCancelAddOption('<?php echo $_G['gp_oid'];?>');hideWindow('<?php echo $_G['gp_handlekey'];?>');return false;" class="flbc" title="关闭">关闭</a></span><?php } ?>
</h3>
<div class="c">
名称:<input type="text" name="newsort" size="10" id="newsort" class="px" />
</div>
<p class="o pns">
<button type="button" name="btnsubmit" value="true" class="pn pnc" onclick="if(blogAddOption('newsort', '<?php echo $_G['gp_oid'];?>'))hideWindow('<?php echo $_G['gp_handlekey'];?>');"><strong>创建</strong></button>
</p>
<script type="text/javascript">
$('newsort').focus();
</script>

<?php } elseif($_GET['op'] == 'edithot') { ?>
<h3 class="flb">
<em>调整热度</em>
<?php if($_G['inajax']) { ?><span><a href="javascript:;" onclick="hideWindow('<?php echo $_G['gp_handlekey'];?>');return false;" class="flbc" title="关闭">关闭</a></span><?php } ?>
</h3>
<form method="post" autocomplete="off" action="home.php?mod=spacecp&amp;ac=blog&amp;op=edithot&amp;blogid=<?php echo $blogid;?>">
<input type="hidden" name="referer" value="<?php echo dreferer(); ?>" />
<input type="hidden" name="hotsubmit" value="true" />
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
<div class="c">
新的热度:<input type="text" name="hot" value="<?php echo $blog['hot'];?>" size="10" class="px" />
</div>
<p class="o pns">
<button type="submit" name="btnsubmit" value="true" class="pn pnc"><strong>确定</strong></button>
</p>
</form>
<?php } else { ?>
<div id="pt" class="bm cl"><?php if($_G['setting']['search']) { ?><?php $slist = array();?><?php if($_G['fid'] && $_G['forum']['status'] != 3 && $mod != 'group') { ?><?php
$slist[forumfid] = <<<EOF
<li><a href="javascript:;" rel="curforum" class="curtype">本版</a></li>
EOF;
?><?php } if($_G['setting']['portalstatus'] && $_G['setting']['search']['portal']['status'] && ($_G['group']['allowsearch'] & 1 || $_G['adminid'] == 1)) { ?><?php
$slist[portal] = <<<EOF
<li><a href="javascript:;" rel="article"
EOF;
 if(CURSCRIPT == 'portal') { 
$slist[portal] .= <<<EOF
 class="curtype"
EOF;
 } 
$slist[portal] .= <<<EOF
>文章</a></li>
EOF;
?><?php } if($_G['setting']['search']['forum']['status'] && ($_G['group']['allowsearch'] & 2 || $_G['adminid'] == 1)) { ?><?php
$slist[forum] = <<<EOF
<li><a href="javascript:;" rel="forum"
EOF;
 if((CURSCRIPT == 'forum' && !$_G['fid']) || (CURSCRIPT == 'home' && in_array($do, array('thread', 'activity', 'poll', 'reward', 'debate', 'trade')))) { 
$slist[forum] .= <<<EOF
 class="curtype"
EOF;
 } 
$slist[forum] .= <<<EOF
>帖子</a></li>
EOF;
?><?php } if($_G['setting']['homestatus'] && $_G['setting']['search']['blog']['status'] && ($_G['group']['allowsearch'] & 4 || $_G['adminid'] == 1)) { ?><?php
$slist[blog] = <<<EOF
<li><a href="javascript:;" rel="blog"
EOF;
 if(CURSCRIPT == 'home' && $do == 'blog') { 
$slist[blog] .= <<<EOF
 class="curtype"
EOF;
 } 
$slist[blog] .= <<<EOF
>日志</a></li>
EOF;
?><?php } if($_G['setting']['homestatus'] && $_G['setting']['search']['album']['status'] && ($_G['group']['allowsearch'] & 8 || $_G['adminid'] == 1)) { ?><?php
$slist[album] = <<<EOF
<li><a href="javascript:;" rel="album"
EOF;
 if(CURSCRIPT == 'home' && $do == 'album') { 
$slist[album] .= <<<EOF
 class="curtype"
EOF;
 } 
$slist[album] .= <<<EOF
>相册</a></li>
EOF;
?><?php } if($_G['setting']['groupstatus'] && $_G['setting']['search']['group']['status'] && ($_G['group']['allowsearch'] & 16 || $_G['adminid'] == 1)) { ?><?php
$slist[group] = <<<EOF
<li><a href="javascript:;" rel="group"
EOF;
 if(CURSCRIPT == 'group' || $_G['basescript']=='group') { 
$slist[group] .= <<<EOF
 class="curtype"
EOF;
 } 
$slist[group] .= <<<EOF
>{$_G['setting']['navs']['3']['navname']}</a></li>
EOF;
?><?php } ?><?php
$slist[user] = <<<EOF
<li><a href="javascript:;" rel="user"
EOF;
 if(CURSCRIPT == 'home' && !in_array($do, array('blog', 'album', 'thread', 'activity', 'poll', 'reward', 'debate', 'trade'))) { 
$slist[user] .= <<<EOF
 class="curtype"
EOF;
 } 
$slist[user] .= <<<EOF
>用户</a></li>
EOF;
?>
<?php if($slist) { ?>
<div id="sc" class="y">
<form id="sc_form" method="post" autocomplete="off" onsubmit="searchFocus($('srchtxt'))" action="<?php echo $_G['siteurl'];?>search.php?searchsubmit=yes" target="_blank">
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
<input type="hidden" name="mod" id="sc_mod" value="title" />
<input type="hidden" name="srhfid" value="<?php echo $_G['fid'];?>" />
<input type="hidden" name="srhlocality" value="<?php echo $_G['basescript'];?>::<?php echo $_G['gp_do'];?>" />
<table cellspacing="0" cellpadding="0">
<tr>
<td id="sc_txt_td"><input type="text" name="srchtxt" id="sc_txt" class="px z" value="请输入搜索内容" autocomplete="off" /></td>
<td id="sc_type_td"><span id="sc_type_w" class="px z"><a href="javascript:;" id="sc_type" class="showmenu xg1" onclick="showMenu(this.id);">搜索</a></span></td>
<td id="sc_btn_td"><button type="submit" name="searchsubmit" id="sc_btn" class="pn pnc" value="true"><strong>搜索</strong></button></td>
</tr>
</table>
<div id="sc_type_menu" class="p_pop cl" style="display: none">
<ul><?php echo implode('', $slist);; ?></ul>
</div>
</form>
<script type="text/javascript">initSearchmenu('sc');</script>
</div>
<?php } } ?><div class="z">
<a href="./" class="nvhm" title="首页"><?php echo $_G['setting']['bbname'];?></a> <em>&rsaquo;</em>
<a href="home.php"><?php echo $_G['setting']['navs']['4']['navname'];?></a> <em>&rsaquo;</em>
<?php if($space['self']) { ?>
<a href="home.php?mod=space&amp;do=blog">日志</a>
<?php } else { ?>
<a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>"><?php echo $space['username'];?> 的个人空间</a> <em>&rsaquo;</em>
<a href="home.php?mod=space&amp;uid=<?php echo $space['uid'];?>&amp;do=blog&amp;view=we">日志</a>
<?php } ?>
<em>&rsaquo;</em>
<?php if($blog['blogid']) { ?>
<a href="home.php?mod=space&amp;uid=<?php echo $blog['uid'];?>&amp;do=blog&amp;id=<?php echo $blog['blogid'];?>"><?php echo $blog['subject'];?></a> <em>&rsaquo;</em> 编辑日志
<?php } else { ?>
发表日志
<?php } ?>
</div>
</div>

<div id="ct" class="ct2_a wp cl">
<div class="mn">
<div class="bm bw0 cl">
<script src="<?php echo STATICURL;?>image/editor/editor_function.js?<?php echo VERHASH;?>" type="text/javascript"></script>
<script src="<?php echo $_G['setting']['jspath'];?>home_blog.js?<?php echo VERHASH;?>" type="text/javascript"></script>
<form id="ttHtmlEditor" method="post" autocomplete="off" action="home.php?mod=spacecp&amp;ac=blog&amp;blogid=<?php echo $blog['blogid'];?><?php if($_G['gp_modblogkey']) { ?>&amp;modblogkey=<?php echo $_G['gp_modblogkey'];?><?php } ?>" enctype="multipart/form-data">
<h1 class="mt cl">
<span class="y xs1 xw0 mtn"><a href="javascript:history.go(-1);">返回上一页</a></span>
<img class="vm" src="<?php echo STATICURL;?>image/feed/blog.gif" alt="blog" /> <?php if($blog['blogid']) { ?>编辑日志<?php } else { ?>发表日志<?php } ?>
</h1>
<?php if(!empty($_G['setting']['pluginhooks']['spacecp_blog_top'])) echo $_G['setting']['pluginhooks']['spacecp_blog_top'];?>
<table cellspacing="0" cellpadding="0" class="tfm">
<tr>
<td><input type="text" id="subject" name="subject" value="<?php echo $blog['subject'];?>" size="60" <?php if($_GET['op'] != 'edit') { ?>onblur="relatekw();"<?php } ?> class="px" style="width: 63%;" /></td>
</tr>
<tr>
<td>
<textarea class="pt" name="message" id="uchome-ttHtmlEditor" style="height:100%;width:100%;display:none;border:0"><?php echo $blog['message'];?></textarea>
<iframe src='home.php?mod=editor&charset=<?php echo CHARSET;?>&allowhtml=<?php echo $allowhtml;?>&doodle=<?php if($_G['setting']['magicstatus'] && !empty($_G['setting']['magics']['doodle'])) { ?>1<?php } ?>' name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:797px;height:400px;border:1px solid #C5C5C5;position:relative;"></iframe>
</td>
</tr>
</table>
<?php if(!empty($_G['setting']['pluginhooks']['spacecp_blog_middle'])) echo $_G['setting']['pluginhooks']['spacecp_blog_middle'];?>
<table cellspacing="0" cellpadding="0" width="100%" class="tfm">

<?php if($_G['setting']['blogcategorystat'] && $categoryselect) { ?>
<tr>
<th>站点分类</th>
<td>
<?php echo $categoryselect;?>
(选择一个站点分类，可以让您的日志被更多的人浏览到)
</td>
</tr>
<?php } ?>

<tr>
<th>个人分类</th>
<td>
<select name="classid" id="classid" onchange="addSort(this)" >
<option value="0">------</option><?php if(is_array($classarr)) foreach($classarr as $value) { if($value['classid'] == $blog['classid']) { ?>
<option value="<?php echo $value['classid'];?>" selected><?php echo $value['classname'];?></option>
<?php } else { ?>
<option value="<?php echo $value['classid'];?>"><?php echo $value['classname'];?></option>
<?php } } if(!$blog['uid'] || $blog['uid']==$_G['uid']) { ?><option value="addoption" style="color:red;">+新建分类</option><?php } ?>
</select>
</td>
</tr>
<tr>
<th>标签</th>
<td class="pns"><input type="text" class="px vm" size="40" id="tag" name="tag" value="<?php echo $blog['tag'];?>" /> <button type="button" name="clickbutton[]" onclick="relatekw();" class="pn vm"><em>自动获取</em></button></td>
</tr>

<?php if($blog['uid'] && $blog['uid']!=$_G['uid']) { ?><?php $selectgroupstyle='display:none';?></table>
<table style="display:none;">
<?php } ?>

<tr>
<th>隐私设置</th>
<td>
<select name="friend" onchange="passwordShow(this.value);" class="ps">
<option value="0"<?php echo $friendarr['0'];?>>全站用户可见</option>
<option value="1"<?php echo $friendarr['1'];?>>仅好友可见</option>
<option value="2"<?php echo $friendarr['2'];?>>指定好友可见</option>
<option value="3"<?php echo $friendarr['3'];?>>仅自己可见</option>
<option value="4"<?php echo $friendarr['4'];?>>凭密码可见</option>
</select>
<label><input type="checkbox" name="noreply" value="1" class="pc"<?php if($blog['noreply']) { ?> checked="checked"<?php } ?>> 不允许评论</label>
</td>
</tr>
<tbody id="span_password" style="<?php echo $passwordstyle;?>">
<tr>
<th>密码</th>
<td class="pns"><input type="text" name="password" value="<?php echo $blog['password'];?>" size="10" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" class="px" /></td>
</tr>
</tbody>

<?php if($blog['uid'] && $blog['uid']!=$_G['uid']) { ?>
</table>
<table cellspacing="0" cellpadding="0" width="100%" class="tfm">
<?php } ?>

<tbody id="tb_selectgroup" style="<?php echo $selectgroupstyle;?>">
<tr>
<th>指定好友</th>
<td>
<select name="selectgroup" onchange="getgroup(this.value);" class="ps">
<option value="">从好友组选择好友</option><?php if(is_array($groups)) foreach($groups as $key => $value) { ?><option value="<?php echo $key;?>"><?php echo $value;?></option>
<?php } ?>
</select>
<p class="d">多次选择会累加到下面的好友名单</p>
</td>
</tr>
<tr>
<th>&nbsp;</th>
<td>
<textarea name="target_names" id="target_names" rows="3" class="pt"><?php echo $blog['target_names'];?></textarea>
<p class="d">可以填写多个好友名，请用空格进行分割</p>
</td>
</tr>
</tbody>

<?php if(checkperm('manageblog')) { ?>
<tr>
<th>热度</th>
<td>
<input type="text" class="px" name="hot" id="hot" value="<?php echo $blog['hot'];?>" size="5" />
</td>
</tr>
<?php } ?>

<tr>
<th>动态选项</th>
<td>
<label for="makefeed"><input type="checkbox" name="makefeed" id="makefeed" value="1" class="pc"<?php if(ckprivacy('blog', 'feed')) { ?> checked="checked"<?php } ?>>发送动态 (<a href="home.php?mod=spacecp&amp;ac=privacy&amp;op=feed" target="_blank">更改默认配置</a>)</label>
</td>
</tr>

<?php if(checkperm('seccode') && ($secqaacheck || $seccodecheck)) { ?><?php $sectpl = '<tr><th><sec></th><td class="pns"><sec><div class="d"><sec></div></td></tr>';?><?php $_G['sechashi'] = !empty($_G['cookie']['sechashi']) ? $_G['sechash'] + 1 : 0;
$sechash = 'S'.($_G['inajax'] ? 'A' : '').$_G['sid'].$_G['sechashi'];
$sectpl = !empty($sectpl) ? explode("<sec>", $sectpl) : array('<br />',': ','<br />','');
$sectpldefault = $sectpl;
$sectplqaa = str_replace('<hash>', 'qaa'.$sechash, $sectpldefault);
$sectplcode = str_replace('<hash>', 'code'.$sechash, $sectpldefault);
$secshow = !isset($secshow) ? 1 : $secshow;
$sectabindex = !isset($sectabindex) ? 1 : $sectabindex;?><?php
$__STATICURL = STATICURL;$seccheckhtml = <<<EOF

<input name="sechash" type="hidden" value="{$sechash}" />

EOF;
 if($sectpl) { if($secqaacheck) { 
$seccheckhtml .= <<<EOF

{$sectplqaa['0']}验证问答{$sectplqaa['1']}<input name="secanswer" id="secqaaverify_{$sechash}" type="text" autocomplete="off" style="width:100px" class="txt px vm" onblur="checksec('qaa', '{$sechash}')" tabindex="{$sectabindex}" />
<a href="javascript:;" onclick="updatesecqaa('{$sechash}');doane(event);" class="xi2">换一个</a>
<span id="checksecqaaverify_{$sechash}"><img src="{$__STATICURL}image/common/none.gif" width="16" height="16" class="vm" /></span>
{$sectplqaa['2']}<span id="secqaa_{$sechash}"></span>

EOF;
 if($secshow) { 
$seccheckhtml .= <<<EOF
<script type="text/javascript" reload="1">updatesecqaa('{$sechash}');</script>
EOF;
 } 
$seccheckhtml .= <<<EOF

{$sectplqaa['3']}

EOF;
 } if($seccodecheck) { 
$seccheckhtml .= <<<EOF

{$sectplcode['0']}验证码{$sectplcode['1']}<input name="seccodeverify" id="seccodeverify_{$sechash}" type="text" autocomplete="off" style="
EOF;
 if($_G['setting']['seccodedata']['type'] != 1) { 
$seccheckhtml .= <<<EOF
ime-mode:disabled;
EOF;
 } 
$seccheckhtml .= <<<EOF
width:100px" class="txt px vm" onblur="checksec('code', '{$sechash}')" tabindex="{$sectabindex}" />
<a href="javascript:;" onclick="updateseccode('{$sechash}');doane(event);" class="xi2">换一个</a>
<span id="checkseccodeverify_{$sechash}"><img src="{$__STATICURL}image/common/none.gif" width="16" height="16" class="vm" /></span>
{$sectplcode['2']}<span id="seccode_{$sechash}"></span>

EOF;
 if($secshow) { 
$seccheckhtml .= <<<EOF
<script type="text/javascript" reload="1">updateseccode('{$sechash}');</script>
EOF;
 } 
$seccheckhtml .= <<<EOF

{$sectplcode['3']}

EOF;
 } } 
$seccheckhtml .= <<<EOF


EOF;
?><?php unset($secshow);?><?php if(empty($secreturn)) { ?><?php echo $seccheckhtml;?><?php } } ?>
</table>
<input type="hidden" name="blogsubmit" value="true" />
<input type="button" id="blogbutton" name="blogbutton" value="提交发布" onclick="validate(this);" style="display: none;" />
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
</form>
<script type="text/javascript">
function validate(obj) {
<?php if($_G['setting']['blogcategorystat'] && $_G['setting']['blogcategoryrequired']) { ?>
var catObj = $("catid");
if(catObj) {
if (catObj.value < 1) {
alert("请选择系统分类");
catObj.focus();
return false;
}
}
<?php } ?>
var makefeed = $('makefeed');
if(makefeed) {
if(makefeed.checked == false) {
if(!confirm("友情提醒：您确定此次发布不发送动态吗？\n有了动态，好友才能及时看到您的更新 ")) {
return false;
}
}
}

if($('seccode')) {
var code = $('seccode').value;
var x = new Ajax();
x.get('home.php?mod=spacecp&ac=common&op=seccode&inajax=1&code=' + code, function(s){
s = trim(s);
if(s.indexOf('succeed') == -1) {
alert(s);
$('seccode').focus();
   		return false;
} else {
uploadEdit(obj);
return true;
}
});
} else {
uploadEdit(obj);
return true;
}
}
</script>
<?php if(!$_G['inajax'] && (!$blog['uid'] || $blog['uid']==$_G['uid'])) { ?>
<table cellspacing="0" cellpadding="0" width="100%" class="tfm">
<tr>
<th>图片</th>
<td class="pns">
<button type="button" name="clickbutton[]" onclick="edit_album_show('pic')" class="pn"><em>上传图片</em></button>
<button type="button" name="clickbutton[]" onclick="edit_album_show('album')" class="pn"><em>插入图片</em></button>
</td>
</tr>
</table>
<?php } ?>

<table cellspacing="0" cellpadding="0" id="uchome-edit-pic" class="tfm" style="display:none;">
<tr>
<th>&nbsp;</th>
<td>
<strong>选择图片</strong>
<table summary="Upload" cellspacing="0" cellpadding="0">
<tbody id="attachbodyhidden" style="display:none">
<tr>
<td>
<form method="post" autocomplete="off" id="upload" action="home.php?mod=spacecp&amp;ac=upload" enctype="multipart/form-data" target="uploadframe">
<input type="file" name="attach" />
<span id="localfile"></span>
<input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true" />
<input type="hidden" name="albumid" id="albumid" value="0" />
<input type="hidden" name="formhash" value="<?php echo FORMHASH;?>" />
</form>
</td>
</tr>
</tbody>
<tbody id="attachbody"></tbody>
</table>
<strong>存储相册</strong>
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<select name="albumid" id="uploadalbum" onchange="addSort(this)" class="ps">
<option value="-1">选择相册</option>
<option value="-1">默认相册</option><?php if(is_array($albums)) foreach($albums as $value) { ?><option value="<?php echo $value['albumid'];?>"><?php echo $value['albumname'];?></option>
<?php } ?>
<option value="addoption" style="color:red;">+创建新相册</option>
</select>
<script src="<?php echo $_G['setting']['jspath'];?>home_uploadpic.js?<?php echo VERHASH;?>" type="text/javascript"></script>
<iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" class="tfm" id="uchome-edit-album" style="display:none;">
<tr>
<th>&nbsp;</th>
<td>
选择相册: <select name="view_albumid" onchange="picView(this.value)" class="ps">
<option value="none">选择相册</option>
<option value="0">默认相册</option><?php if(is_array($albums)) foreach($albums as $value) { ?><option value="<?php echo $value['albumid'];?>"><?php echo $value['albumname'];?></option>
<?php } ?>
</select>
<p class="d">点击图片可以插入到内容中</p>
<div id="albumpic_body"></div>
</td>
</tr>
</table>
<?php if(!empty($_G['setting']['pluginhooks']['spacecp_blog_bottom'])) echo $_G['setting']['pluginhooks']['spacecp_blog_bottom'];?>
<table cellspacing="0" cellpadding="0" class="tfm">
<tr>
<th>&nbsp;</th>
<td><button type="button" id="issuance" onclick="document.getElementById('blogbutton').click();" class="pn pnc"><strong>保存发布</strong></button></td>
</tr>
</table>
</div>
</div>
<div class="appl"><?php if(!empty($_G['setting']['pluginhooks']['global_userabout_top'][$_G['basescript'].'::'.CURMODULE])) echo $_G['setting']['pluginhooks']['global_userabout_top'][$_G['basescript'].'::'.CURMODULE];?><?php getuserapp(1);?><ul><?php if(is_array($_G['setting']['spacenavs'])) foreach($_G['setting']['spacenavs'] as $nav) { if($nav['available'] && (!$nav['level'] || ($nav['level'] == 1 && $_G['uid']) || ($nav['level'] == 2 && $_G['adminid'] > 0) || ($nav['level'] == 3 && $_G['adminid'] == 1))) { if(in_array($nav['code'], array('userpanelarea1', 'userpanelarea2'))) { if(!empty($_G['my_panelapp']) && $_G['setting']['my_app_status']) { if($nav['code']=='userpanelarea1' && !empty($_G['my_panelapp']['1'])) { if(is_array($_G['my_panelapp']['1'])) foreach($_G['my_panelapp']['1'] as $appid => $app) { ?><li>
<a href="userapp.php?mod=app&amp;id=<?php echo $app['appid'];?>" title="<?php echo $app['appname'];?>"><img <?php if($app['icon']) { ?>src="<?php echo $app['icon'];?>" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/<?php echo $app['appid'];?>'"<?php } else { ?> src="http://appicon.manyou.com/icons/<?php echo $app['appid'];?>"<?php } ?> name="<?php echo $appid;?>" alt="<?php echo $app['appname'];?>" /><?php echo $app['appname'];?></a>
</li>
<?php } } elseif($nav['code']=='userpanelarea2' && !empty($_G['my_panelapp']['2'])) { if(is_array($_G['my_panelapp']['2'])) foreach($_G['my_panelapp']['2'] as $appid => $app) { ?><li>
<a href="userapp.php?mod=app&amp;id=<?php echo $app['appid'];?>" title="<?php echo $app['appname'];?>"><img <?php if($app['icon']) { ?>src="<?php echo $app['icon'];?>" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/<?php echo $app['appid'];?>'"<?php } else { ?> src="http://appicon.manyou.com/icons/<?php echo $app['appid'];?>"<?php } ?> name="<?php echo $appid;?>" alt="<?php echo $app['appname'];?>" /><?php echo $app['appname'];?></a>
</li>
<?php } } } } else { ?>
<?php echo $nav['code'];?>
<?php } } } ?>
</ul>
<?php if($_G['setting']['my_app_status']) { if(!empty($_G['cache']['userapp'])) { ?>
<ul id="my_defaultapp"><?php if(is_array($_G['cache']['userapp'])) foreach($_G['cache']['userapp'] as $value) { ?><li><a href="userapp.php?mod=app&amp;id=<?php echo $value['appid'];?>" title="<?php echo $value['appname'];?>"><img <?php if($value['icon']) { ?>src="<?php echo $value['icon'];?>" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/<?php echo $value['appid'];?>'"<?php } else { ?> src="http://appicon.manyou.com/icons/<?php echo $value['appid'];?>"<?php } ?> alt="<?php echo $value['appname'];?>" /><?php echo $value['appname'];?></a></li>
<?php } ?>
<?php if(!empty($_G['setting']['pluginhooks']['userapp_menu_top'])) echo $_G['setting']['pluginhooks']['userapp_menu_top'];?>
</ul>
<?php } if($_G['my_menu']) { ?>
<ul id="my_userapp"><?php if(is_array($_G['my_menu'])) foreach($_G['my_menu'] as $value) { ?><li id="userapp_li_<?php echo $value['appid'];?>"><a href="userapp.php?mod=app&amp;id=<?php echo $value['appid'];?>" title="<?php echo $value['appname'];?>"><img <?php if($value['icon']) { ?>src="<?php echo $value['icon'];?>" onerror="this.onerror=null;this.src='http://appicon.manyou.com/icons/<?php echo $value['appid'];?>'"<?php } else { ?> src="http://appicon.manyou.com/icons/<?php echo $value['appid'];?>"<?php } ?> alt="<?php echo $value['appname'];?>" /><?php echo $value['appname'];?></a></li>
<?php } ?>
<?php if(!empty($_G['setting']['pluginhooks']['userapp_menu_middle'])) echo $_G['setting']['pluginhooks']['userapp_menu_middle'];?>
</ul>
<?php } if($_G['my_menu_more']) { ?>
<p class="pbm bbda xg1 cl"><a href="javascript:;" class="unfold" id="a_app_more" onclick="userapp_open();">展开</a></p>
<?php } if(checkperm('allowmyop')) { ?>
<ul class="myo mtm">
<li><a href="userapp.php?mod=manage&amp;my_suffix=%2Fapp%2Flist%3Fsort%3Dtime"><img src="<?php echo IMGDIR;?>/app_add.gif" alt="app_add" />添加<?php echo $_G['setting']['navs']['5']['navname'];?></a></li>
<li><a href="userapp.php?mod=manage&amp;ac=menu"><img src="<?php echo IMGDIR;?>/app_set.gif" alt="app_set" />管理<?php echo $_G['setting']['navs']['5']['navname'];?></a></li>
</ul>
<?php } } ?>
<?php if(!empty($_G['setting']['pluginhooks']['global_userabout_bottom'][$_G['basescript'].'::'.CURMODULE])) echo $_G['setting']['pluginhooks']['global_userabout_bottom'][$_G['basescript'].'::'.CURMODULE];?></div>
</div>
<script type="text/javascript">
if($('subject')) {
$('subject').focus();
}
</script>
<?php } include template('common/footer'); ?>